using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;

namespace DM.DAO
{
    public abstract class BaseDao<T>
    {      
        //return Object
        public abstract T Get(int id);
        
        //return Object
        public abstract T Get(String name);

        //return new ID
        public abstract int Insert(T t);

        //return number row update
        public abstract int Update(T t);

        //return number row update
        public abstract int Update(List<T> ts);

        //return number row delete
        public abstract int Delete(String id);
    }
}
